projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa6c6d
)
output &#nnn; instead of &#xnnn; since expat doesn't like the latter
author
parkrrrr
<parkrrrr>
Mon, 19 Jan 2004 20:32:21 +0000
(20:32 +0000)
committer
parkrrrr
<parkrrrr>
Mon, 19 Jan 2004 20:32:21 +0000
(20:32 +0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index 2cb9f1c5dd93f97cd96f72c89e9ff981cecac727..fd1d63215a33680bb03f53130732e5fabf2ea479 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-660,7
+660,7
@@
char * xml_entitize(const char * str)
utf8_to_int( cp, &bytes, &value );
cp += bytes-1;
- elen += sprintf( tmpsub, "&#
x%x
;", value ) - bytes;
+ elen += sprintf( tmpsub, "&#
%d
;", value ) - bytes;
nsecount++;
}
}
@@
-705,7
+705,7
@@
char * xml_entitize(const char * str)
else {
xstr = NULL;
}
- sprintf( p, "&#
x%x
;", value );
+ sprintf( p, "&#
%d
;", value );
p = p+strlen(p);
if ( xstr ) {
strcpy( p, xstr );